/**
 * Copyright &copy; 2012-2014 <a href="https://github.com.jims.base">JeeSite</a> All rights reserved.
 */
package com.jims.master.modules.patient.health.service;


import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.patient.health.dao.SymptomRecDao;
import com.jims.master.modules.patient.health.entity.SymptomRec;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


/**
 * 症状Service
 * @author xueyx
 * @version 2017-07-20
 */
@Service
@Transactional(readOnly = true)
public class SymptomRecService extends CrudService<SymptomRecDao, SymptomRec> {
	@Autowired
	SymptomRecDao symptomRecDao;
	@Override
    public Page<SymptomRec> findPage(Page<SymptomRec> page, SymptomRec symptomRec) {
		return super.findPage(page, symptomRec);
	}

	public List<SymptomRec> findByBaseId(String baseid){
		return symptomRecDao.findByBaseId(baseid);
	}

	@Transactional(readOnly = false)
	public void remove(Integer id){
		symptomRecDao.remove(id);
	}


	public SymptomRec findById(Integer id){
		return symptomRecDao.findById(id);
	}

}